import pandas as pd
from matplotlib import pyplot as plt

tbl = pd.read_csv('result',  sep=' ')

tbl['Build_time'] = (tbl['Build_time'] - min(tbl['Build_time']))/(max(tbl['Build_time'])-min(tbl['Build_time']))
tbl['Remove_time'] = (tbl['Remove_time'] - min(tbl['Remove_time']))/(max(tbl['Remove_time'])-min(tbl['Remove_time']))
plt.figure(figsize = (10, 10))

plt.plot(tbl[['Build_time', 'Remove_time']])
plt.ylabel('Time Consuming')
plt.xlabel('Size')
plt.title(f'Time Curve, N={len(tbl)*10}')
plt.legend(['Build_time', 'Remove_time'])
plt.savefig(f'curve{len(tbl)*10}.png', facecolor = 'w')